<template>
	<view class="content">
		<view class="rich-text">
			<rich-text :nodes="html"></rich-text>
		</view>
		<view class="bottom-safe-area"></view>
		<common-drag />
	</view>
</template>
<script>
	
	export default {
		data() {
			return {
				html:''
			}
		},
		onLoad() {
			this.getHtmlRequest();
		},
		methods: {
			getHtmlRequest(){
				this.$u.api.getSignRule().then(res=>{

					// #ifdef	MP-WEIXIN
					this.html=res.data.agreement;
					// #endif
					// #ifdef	MP-ALIPAY
					this.html=this.$parseHtml(res.data.agreement);
					// #endif
					
				}).catch(()=>{});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		padding:24rpx;
	}
</style>

